﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BC.OPC
{
    /// <summary>
    /// OPC客户端 配置实体，
    /// 与“OpcClientConfig.xml”配置文件 互相 对应(严格)
    /// </summary>
    public class OpcClientConfig
    {
        /// <summary>
        /// OPC服务IP
        /// </summary>
        public string IPAddress { get; set; }
        /// <summary>
        /// OPC服务名称
        /// </summary>
        public string ServiceName { get; set; }

        #region OPC组，配置属性

        /// <summary>
        /// 是否 激活组
        /// </summary>
        public bool GroupIsActive { get; set; }
        /// <summary>
        /// 组 死亡带
        /// </summary>
        public int GroupDeadband { get; set; }
        /// <summary>
        /// 更新频率
        /// </summary>
        public int UpdateRate { get; set; }
        /// <summary>
        /// 是否 激活
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 是否 订阅
        /// </summary>
        public bool IsSubscribed { get; set; }

        #endregion

        /// <summary>
        /// 秒
        /// </summary>
        public int Second { get; set; }
        /// <summary>
        /// OPC变量过滤条件，服务插件（Opc Plug-In）
        /// </summary>
        public string OpcTagFilter
        {
            get;
            set;
        }
        /// <summary>
        /// 日志文件名
        /// </summary>
        public string LogFileName { get; set; }
    }
}
